<!--
  @author heguanghua
  @since 2019/06/12 11:57
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<div class="layui-card-body" th:fragment="query">

    <div class="zmn-form-item">

        <div class="item-inline">
            <label class="inline-label">所属平台：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select lay-filter="plat" name="plat" lay-search>
                            <option value=""></option>
                            <option th:each="plat:${plats}" th:value="${plat.key}" th:selected="${plat.key == query.plat}" th:text="${plat.value}"/>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">服务商：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <input type="text" name="manageCompanyName" th:value="${query.manageCompanyName}" placeholder="服务商名称" autocomplete="off" class="layui-input" maxlength="20"/>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline col2">
            <label class="inline-label">城市：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline col2">
                        <select name="provinceId" lay-filter="provinceId" lay-search>
                            <option value=""></option>
                            <option th:each="province:${provinces}" th:value="${province.areaId}" th:selected="${province.areaId == query.provinceId}" th:text="${province.name}"/>
                        </select>
                    </div>
                    <div class="box-input-inline col2">
                        <select id="cityId" name="cityId" lay-search>
                            <option value=""></option>
                            <option th:each="city:${citys}" th:value="${city.areaId}" th:selected="${city.areaId == query.cityId}" th:text="${city.name}"/>
                        </select>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="zmn-form-item">
        <div class="item-inline">
            <label class="inline-label">ID/工程师：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <input type="text" name="keyword" th:value="${query.keyword}" placeholder="ID或名称" autocomplete="off" class="layui-input" maxlength="20"/>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">黑白名单：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select lay-filter="type" name="type" lay-search>
                            <option value=""></option>
                            <option value="1" th:selected="${query.type == 1}">黑名单</option>
                            <option value="2" th:selected="${query.type == 2}">白名单</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-submit" style="margin-left: 60px">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="zmn-board-form-submit"><i class="layui-icon">&#xe615;</i></button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon">&#xe669;</i></button>
            <button class="layui-btn d-button" lay-submit lay-filter="query-export" id="query-export" style="display: none">导出</button>
        </div>
    </div>

</div>

</html>